<?php
if(!empty($_GET['god'])) {
    if(!empty($_GET['good'])){
        rename("./pic/suolue/{$_GET['good']}","./pic/suolue/{$_GET['god']}");
        rename("./pic/{$_GET['good']}","./pic/{$_GET['god']}");
        echo "<script>window.location.href='./index.php';</script>";
    }
}else{
    echo "<script>alert('更改错误');window.location.href='./index.php';</script>";
}
